import '@/assets/base.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

//1，引入axios
import axios from 'axios'
//2,配置axios
axios.defaults.baseURL='http://localhost'
// 引入echarts
import Echarts from 'vue-echarts'
import * as echarts from 'echarts'

const app = createApp(App)

//3,挂载axios
app.use(axios)

app.component('e-charts', Echarts)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

app.use(router)
app.use(ElementPlus)

app.mount('#app')